#Create Setup Directory New-Item -ItemType "directory" -Path "C:\setup" #Login to NAS net use \\192.168.0.24\Source /user:backup GjmBkp23$ #Install Kaspersky Copy-Item -Path "\\192.168.0.24\Source\Standard\KES_Setup.exe" -Destination "C:\setup\KES_Setup.exe" -Force Start-Process "C:\setup\KES_Setup.exe" -NoNewWindow -Wait #Delete Setup Directory Remove-Item -LiteralPath "C:\setup" -Force -Recurse